<template>
	<view :style="{paddingTop: getters.globalData.navHeight + 'px'}">
		<!-- navbar -->
		<coustomNavbar ref="coustomNavbarRef"/>
		<view>
			内容开始
		</view>
		<!-- 全局tabbar组件 -->
		<coustomTabbar ref="coustomTabbarRef"/>
	</view>
</template>

<script>
export default {
	name: 'index',
	props: {},
	components:{ },
	computed: {
		getters: function(){
			return this.$store.getters
		}
	},
	data() {
		return {
		}
	},
	onLoad() {
		console.log('this.getters', this.getters)
	},
	methods: {
		//显示，隐藏 登录 -- commit
		showHideLogin(isShow = false){
			this.$store.commit('setLoginShow', isShow);
		},
		//显示，隐藏 登录 --dispatch
		showHideLogin2(isShow = false){
			this.$store.dispatch('setLoginShow', isShow);
		},
	},
}
</script>